package com.szzg10.pattern.template;

public class Coffee extends Beverage {

	@Override
	public void stuff() {
		System.out.println("Coffee is stuff!!!");
	}

	@Override
	public void condiment() {
		if(sugerhook()) {
			System.out.println("Coffee's suger!!!");
		}
		if(powderhook()) {
			System.out.println("Coffee's powder!!!");
		}
	}
	
	@Override
	public boolean sugerhook() {
		return true;
	}

}
